/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ticketmanager;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 *
 * @author Viktor
 */
public class DatabaseConnector {
    public Connection establishConnection() {
        try {
            return DriverManager.getConnection
                ("jdbc:oracle:thin:@85.254.216.225:1521:orcl", "STUDENT", "KaeFN45gp");
        } catch (SQLException e) {
            e.printStackTrace();
            return null;
        }
    }
    public void closeConnection(Connection conn) {
        try {
            conn.close();
        }
        catch(SQLException e) {

        }
    }
}
